/*
 * #%L
 * InterfaceAPI
 * %%
 * Copyright (C) 2011 Ractoc.com
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package com.ractoc.opengamefinder.api.messages.network;

import com.jme3.network.serializing.Serializable;
import com.ractoc.opengamefinder.api.vo.AccountVO;

/**
 * Used to send a chat line with spidermonkey across the network.
 * @author ractoc
 * @version 0.1
 */
@Serializable
public final class ChatLineNetworkMessage extends ChatNetworkMessage {

    private String line;
    private AccountVO account;
    private String room;
    
    /**
     * Default constructor.
     */
    public ChatLineNetworkMessage() {
    }

    /**
     * Get the text part of the chatline.
     * @return The text part of the chatline.
     */
    public String getLine() {
        return line;
    }

    /**
     * Set the text part of the chatline.
     * @param lineParam The text part of the chatline.
     */
    public void setLine(final String lineParam) {
        this.line = lineParam;
    }

    /**
     * Set the account of the player that posted the chat line.
     * @param accountParam The account of the player that posted the chat line.
     */
    public void setAccount(final AccountVO accountParam) {
        this.account = accountParam;
    }

    /**
     * Get the account of the player that posted the chat line.
     * @return The account of the player that posted the chat line.
     */
    public AccountVO getAccount() {
        return account;
    }

    /**
     * Set the room the chatline was added to.
     * @param roomParam The room the chatline was added to.
     */
    public void setRoom(final String roomParam) {
        this.room = roomParam;
    }

    /**
     * Get the room the chatline was added to.
     * @return The room the chatline was added to.
     */
    public String getRoom() {
        return room;
    }

}
